package com.oms.web.form;

import java.io.Serializable;

import javax.validation.constraints.Pattern;

import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotEmpty;

//重置密码的数据表单模型
public class ResetPasswordForm implements Serializable{


	/**
	 * 
	 */
	private static final long serialVersionUID = 8754298234300663102L;
	
	@NotEmpty
	private String resetCode;
	
	@NotEmpty(message="不能为空")
	@Length(min=6,max=16,message="密码长度要在6到16位之间")
	@Pattern(regexp="\\w*",message="只能输入大小写字母和数字")
	private String newPassword1;

	@NotEmpty(message="不能为空")
	@Length(min=6,max=16,message="密码长度要在6到16位之间")
	@Pattern(regexp="\\w*",message="只能输入大小写字母和数字")
	private String newPassword2;

	public String getResetCode() {
		return resetCode;
	}

	public void setResetCode(String resetCode) {
		this.resetCode = resetCode;
	}
	
	public String getNewPassword1() {
		return newPassword1;
	}

	public void setNewPassword1(String newPassword1) {
		this.newPassword1 = newPassword1;
	}

	public String getNewPassword2() {
		return newPassword2;
	}

	public void setNewPassword2(String newPassword2) {
		this.newPassword2 = newPassword2;
	}
}
